Chemistry of photolithography